<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox
 * @version 		$Id: panel.html.php 414 2009-04-17 23:31:59Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
<div id="profile_content_tabs">
    <ul>
        <li><a href="#profile_content_tabs-1">Going(<?php echo count($this->_aVars['aGoing']); ?>)</a></li>
        <li><a href="#profile_content_tabs-2">Maybe(<?php echo count($this->_aVars['aMaybe']); ?>)</a></li>
        <li><a href="#profile_content_tabs-3">Invited(<?php echo count($this->_aVars['aInvited']); ?>)</a></li>
    </ul>
    <div id="profile_content_tabs-1">
    	{foreach from=$aGoing item=aItem}
		<div style="float:left;padding-left:2px;">
			{img user=$aItem suffix='_50_square' max_width=32 max_height=32}
		</div>
		{/foreach}
		{if count($aGoing)==0}
			No member found!
		{/if}
		<div style="clear: both;"></div>
    </div>
    <div id="profile_content_tabs-2">
		{foreach from=$aMaybe item=aItem}
		<div style="float:left;padding-left:2px;">
			{img user=$aItem suffix='_50_square' max_width=32 max_height=32}
		</div>
		{/foreach}
		{if count($aMaybe)==0}
			No member found!
		{/if}
		<div style="clear: both;"></div>
    </div>
    <div id="profile_content_tabs-3">
        {foreach from=$aInvited item=aItem}
		<div style="float:left;padding-left:2px;">
			{img user=$aItem suffix='_50_square' max_width=32 max_height=32}
		</div>
		{/foreach}
		{if count($aInvited)==0}
			No member found!
		{/if}
		<div style="clear: both;"></div>
    </div>
</div>


{literal}
<script type="text/javascript">
    var is_loaded_init_profile_tabs = false;
    $Behavior.init_profile_tabs = function(){
        if(!is_loaded_init_profile_tabs){
            $('#profile_content_tabs').tabs();
            is_loaded_init_profile_tabs = true;
        }
    }
</script>
{/literal}